ShortPixel\Controller\Front\CDNController B

Total Complexity 98
Dependencies 5
Dependents 3
Total lines 787
Lines of code 466
Logical lines of code 285
Comment lines 101
Methods 27
Properties 5

Methods 27

Method Rating Maintainability Complexity Lines of code
createArguments()
A
46 16 35
processScript()
A
43 12 50
processFront()
A
42 8 57
purgeCDN()
A
48 7 32
extractImageMatches()
S
49 6 32
loadCDNDomain()
S
52 6 27
createReplacements()
S
52 4 24
getPurgeURL()
S
55 4 19
registerDomain()
S
51 3 28
flushItem()
S
53 3 23
checkScheme()
S
64 4 9
checkDomain()
S
59 3 14
addWPHooks()
S
64 3 9
fetchInlineBackground()
S
62 2 12
pregReplaceContent()
S
60 2 12
validateCDNDomain()
S
65 2 11
__construct()
S
66 2 9
init()
S
59 1 15
checkContent()
S
65 2 10
encodeForJSON()
S
73 1 5
fetchImageMatches()
S
72 1 5
fetchDocumentMatches()
S
91 1 2
stringReplaceContent()
S
72 1 5
pregReplaceByString()
S
66 1 8
checkJson()
S
76 1 4
listenFlush()
S
74 1 4
getURLBase()
S
72 1 5